//GO variable Types

// int--stores integers (whole numbers), such as 123 or -123
// float32--stores floating point numbers, with decimals, such as 19.99 or -19.99
// string--stores text, such as "Hello World". String values are surrounded by double quotes
// bool--stores values with two states: true or false

// Declaring (creating) Variables

// use the "var" keyword, followed by variable name and type

// use the ":=" sign, followed by the variable value:
// In this case, the type of the variable  is inferred from the value (means that the compiler decides the type of the variable, based on the value)
// It is impossible to declare a variable using ":=", without assigning a value to it.  


package main 
import ("fmt")

func main(){
    var student1 string = "John" // type is string
    var student2 = "Jane"        // type is inferred
    x := 2                       // type is inferred

    fmt.Println(student1)
    fmt.Println(student2)
    fmt.Println(x)
}

